package com.cx.jvm;

/**
 * @Author songyahui
 * @Date 2023/7/28 15:42
 * @Description 乱写，只是想观察在夹杂了变量、静态变量和方法的情况下class字节码的反编译内容
 */
public class ClassCodeParseTest {

    private static int i = 5;

    private long l = 5;

    static {
        System.out.println(i);
    }

    public static void main(String[] args) {
        test1();
    }

    public static void test1() {
        ClassCodeParseTest cpt = new ClassCodeParseTest();
        int j = test2(10) / i;
        System.out.println("class code parse test: " + cpt.l * j);
    }

    public static int test2(int k) {
        return i % 2;
    }
}
